package com.jianxiu.bean;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by tancw on 2017/3/23.
 */
public class SearchParam {
    private int start = 0;
    private int limit = 15;
    private Map<String, Object> sp = new HashMap<String, Object>();
    private Map<String, Object> spDown;

    public int getStart() {
        return start;
    }

    public void setStart(int start) {
        this.start = start;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public Map<String, Object> getSp() {
        sp.put("limit", limit);
        sp.put("start", start);
        return sp;
    }

    public void setSp(Map<String, Object> sp) {
        this.sp = sp;
    }

    public Map<String, Object> getSpDown() {
        if(sp != null){
            sp.remove("limit");
            sp.remove("start");
        }
        return sp;
    }
}
